
<table class="table">
<thead>
	<tr>
	<td class="col-sm-1">&nbsp;</td>
						<td class="col-sm-1">treatmentDate</td>
					<td class="col-sm-1">cattleUid</td>
					<td class="col-sm-1">dignose</td>
					<td class="col-sm-1">treatment</td>
					<td class="col-sm-1">result</td>
			</tr>
</thead>
<tbody>
	<?php foreach($modelCattleTreatment as $i=>$item): ?>
	<tr rowIndex="<?php echo $i; ?>">
	<td><a class="btn-sm btn btn-primary" href="javascript:void(0);"><i class="btn-deleterowcattletreatment glyphicon glyphicon-remove"></i></a></td>	
			<?php echo CHtml::activeHiddenField($item,"[$i]id"); ?>	
			<td><?php echo '<div class="input-group date">',CHtml::activeTextField($item,"[$i]treatmentDate",array('class'=>'form-control')),'<span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span></div>'; ?></td>	
			<td><?php echo CHtml::dropDownList("[$i]cattleUid", $item->cattleUid, CHtml::listData(cattle::model()->findAll(), 'id', 'title'),array('class'=>'form-control')); ?></td>	
			<td><?php echo CHtml::activeTextField($item,"[$i]dignose",array('class'=>'form-control')); ?></td>	
			<td><?php echo CHtml::activeTextField($item,"[$i]treatment",array('class'=>'form-control')); ?></td>	
			<td><?php echo CHtml::activeTextField($item,"[$i]result",array('class'=>'form-control')); ?></td>	
		
	</tr>
	<?php endforeach; ?>
<tbody>
</table>